package com.jl.niuniu.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * coalition_niu_record
 */
@Table(name = "coalition_niu_record")
@Alias("coalitionNiuRecord")
@ApiModel
@Data
public class CoalitionNiuRecord {
    /**
     * 
     */
    @Id
    @Column(name = "id")
    @ApiModelProperty("")
    private Integer id;

    /**
     * 大联盟ID
     */
    @Column(name = "coalition_id")
    @ApiModelProperty("大联盟ID")
    private Integer coalitionId;

    /**
     * 游戏ID
     */
    @Column(name = "game_id")
    @ApiModelProperty("游戏ID")
    private Integer gameId;

    /**
     * 房间ID
     */
    @Column(name = "room_id")
    @ApiModelProperty("房间ID")
    private Integer roomId;

    /**
     * 用户ID
     */
    @Column(name = "user_id")
    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("加倍")
    @Column(name = "max_rush")
    private Integer maxRush;

    @ApiModelProperty("庄家(0不是  1是)")
    @Column(name = "banker")
    private String banker = "0";

    /**
     * 下注
     */
    @Column(name = "bets")
    @ApiModelProperty("下注")
    private BigDecimal bets;

    /**
     * 牌
     */
    @Column(name = "poker")
    @ApiModelProperty("牌")
    private String poker;

    /**
     * 结果
     */
    @Column(name = "result")
    @ApiModelProperty("结果")
    private String result;

    /**
     * 赢
     */
    @Column(name = "win")
    @ApiModelProperty("赢")
    private BigDecimal win;

    /**
     * 输
     */
    @Column(name = "lose")
    @ApiModelProperty("输")
    private BigDecimal lose;

    /**
     * 牌型
     */
    @Column(name = "poker_type")
    @ApiModelProperty("牌型")
    private String pokerType;

    /**
     * 
     */
    @Column(name = "create_time")
    @ApiModelProperty("")
    private Date createTime;

}